import request from '@/utils/request'

// 模板配置接口类型定义
export interface TemplateConfigData {
  id?: number,
  name: string,
  web_favicon: string,
  login_image: string,
  web_logo: string,
  shop_name: string,
  shop_template: string,
  shop_logo: string,
  shop_home_logo: string,
  shop_start_logo: string
}

// 获取网站配置
export function getWebsiteConfig(params?: any) {
  return request.get({url:'/setting.web.web_setting/getWebsite', params })
}


// 保存网站配置
export function saveWebsiteConfig(data: TemplateConfigData) {
  return request.post({url: '/setting.web.web_setting/setWebsite', data})
}


